/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package validation.converter;

import java.math.BigDecimal;
import org.jdesktop.beansbinding.Converter;

/**
 *
 * @author Usuario
 */
public class BigDecimalSpinnerConverter extends Converter<BigDecimal, Object> {

    @Override
    public Object convertForward(BigDecimal value) {
        return value;
    }

    @Override
    public BigDecimal convertReverse(Object value) {
        return new BigDecimal((Double)value);
    }
    
}
